<template>
	<div class="parent">
		v-model:传值
		<div>
			parent///{{ message }}
			<Child v-model="message" />
		</div>
		<hr />
		<div>
			provide和inject
		 
			<br />
		</div>
	</div>
</template>

<script>
import Child from './child.vue';

export default {
	name: 'parent',
	components: { Child },
	provide() {
		return { for123: this.for1 };
	},
	data() {
		return {
		 
			for1: 'wersdf',
			message: 'parent message'
		};
	},
	mounted() {
		this.for1 = '111111111111';
		 
	},

	methods: {
		btnFn() {}
	}
};
</script>
<style scoped></style>
